import request from '@/utils/request'

// 查询荣誉列表
export function certificatesApi(query) {
  return request({
    url: '/system/certificates/listByTeacher',
    method: 'get',
    params: query
  })
}
// 荣誉列表里面的通过
export function certificatesPassAll(data) {
  return request({
    url: '/system/certificates/audit',
    method: 'post',
    data:data
  })
}
// 荣誉详情
export function certificatesDetail(id) {
  return request({
    url: `/system/certificates/${id}`,
    method: 'get',
  })
}
// 荣誉列表里面的查看-修改学分
export function recordsPutApi(data) {
  return request({
    url: '/system/records',
    method: 'put',
    data:data
  })
}